package edu.sctu.practice.class01.zhoudie.assgin02;

/**
 * Created by Administrator on 2015-10-21.
 */
public class Circle {

    private double radius;
    public static int  numOfObjects;
    public double area;
    public  static final double PI=3.14;

    public Circle(double radious){

        this.radius=radious;
        numOfObjects++;
        getArea();

    }

    public void getArea(){

        area = radius*radius* PI;
    }

    public static void printCircle(Circle c){

        System.out.println("半径是：" + c.radius);
        System.out.println("面积是：" + c.area);

    }
}
